<template>
    <div style="background-color: deepskyblue;">
        Bus6
        <button @click="emit">emit</button>
    </div>
</template>

<script setup lang='ts'>
import { getCurrentInstance } from 'vue'

const instance = getCurrentInstance()
const emit = () => {
    instance?.proxy?.$bus.emit('on-click', '来自Bus6')
    instance?.proxy?.$bus.emit('on-click2', '来自Bus6(2)')
}
</script>

<style scoped lang="scss"></style>